package cn.sykj.car.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author Yixu
 * @since 2018-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = false)
@TableName("users")
@ApiModel(value="Users对象", description="用户")
public class Users extends Model<Users> {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "密码")
    private String passwd;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "电话")
    private String tel;

    @ApiModelProperty(value = "逻辑删除标志")
    private Integer delFlag;

    @ApiModelProperty(value = "地区")
    private String areaCode;

    public static final String ID = "id";

    public static final String USER_NAME = "user_name";

    public static final String PASSWD = "passwd";

    public static final String REAL_NAME = "real_name";

    public static final String TEL = "tel";

    public static final String DEL_FLAG = "del_flag";

    public static final String AREA_CODE = "area_code";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
